<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加公告</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
</head>
<body>
	<div align="center">
	<div style="width: 100%; text-align: center;font-weight: bold;font-size: 20px; padding: 50px 0px 20px 0px;">添加公告</div>
		<form:form action="${pageContext.request.contextPath }/notice/add" method="post" modelAttribute="notice" style="width: 30%;">
			<table class="table table-bordered">
				<tr>
					<td>
						<img src="${pageContext.request.contextPath}/image/title.png" style="width: 25px;height: 25px;background-position: center;background-size: cover;">
						<font color="red">*</font>
						</td>
					<td>
						<form:input path="ntitle" placeholder="公告标题" style="width:300px;" class="form-control"/>
						<form:errors path="ntitle" cssStyle="font-size:xx-small;color:red"/>
					</td>
				</tr>
				<tr>
					<td>
						<img src="${pageContext.request.contextPath}/image/content.png" style="width: 25px;height: 25px;background-position: center;background-size: cover;">
						<font color="red">*</font></td>
					<td>
						<form:textarea path="ncontent" placeholder="公告内容" style="width:300px;" class="form-control"/>
						<form:errors path="ncontent" cssStyle="font-size:xx-small;color:red"/>
					</td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="提交" class="btn btn-primary"/>
						<input type="reset" value="重置" class="btn btn-default"/>
						<span style="font-size: xx-small; color: green;">${message }</span>
					</td>
				</tr>
			</table>
		</form:form>
	</div>
</body>
</html>